/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.settlement.item;

import org.hibernate.validator.constraints.Length;

import com.server.common.persistence.DataEntity;

import java.util.Date;

/**
 * 结算明细Entity
 * @author 丁光彪
 * @version 2016-11-21
 */
public class SettlementItem extends DataEntity<SettlementItem> {
	
	private static final long serialVersionUID = 1L;
	protected String type;		// 支出或收入类型 1.收入 2.支出
	protected Long amount;		// 金额
	protected String payFlag;		// 付款标示 0.未付款 1.已付款（不管是收入还是支出）
	protected String settlementId;		// settlement_id
	protected String amountStr;		// 金额
	protected String accountId;		// 收款方式或扣除项  和account表关联
	protected String settlementType;//结算方式 0.结算收款 1.结算退款 2.结算付款 3.后台付订金 4.app付订金
	protected Date payDate;// 付款日期
	protected String signature;//签名
	protected String  accountName;

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}

	public String getSettlementType() {
		return settlementType;
	}

	public void setSettlementType(String settlementType) {
		this.settlementType = settlementType;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getAmountStr() {
		return amountStr;
	}

	public void setAmountStr(String amountStr) {
		this.amountStr = amountStr;
	}

	public SettlementItem() {
		super();
	}

	public SettlementItem(String id){
		super(id);
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=1, max=18, message="金额长度必须介于 1 和 18 之间")
	public Long getAmount() {
		return amount;
	}

	public void setAmount(Long amount) {
		this.amount = amount;
	}
	
	public String getPayFlag() {
		return payFlag;
	}

	public void setPayFlag(String payFlag) {
		this.payFlag = payFlag;
	}
	
	@Length(min=1, max=64, message="settlement_id长度必须介于 1 和 64 之间")
	public String getSettlementId() {
		return settlementId;
	}

	public void setSettlementId(String settlementId) {
		this.settlementId = settlementId;
	}
	
}